<?php
    //debug($return_arr);
?>
<table class="tablep table-bordered">
    <thead>
    <tr>
        <th>Customer</th>
        <th>Qty</th>
        <th>Model</th>
        <th>Selling Price <?php echo $tran_currency; ?></th>
        <th>Deposit <?php echo $tran_currency; ?></th>
        <th>Loan <?php echo $tran_currency; ?></th>
        <th>Interest <?php echo $tran_currency; ?></th>
        <th>Total <?php echo $tran_currency; ?></th>
        <th>Payments <?php echo $tran_currency; ?></th>
        <th>Undue <?php echo $tran_currency; ?></th>
        <th>Past Due <?php echo $tran_currency; ?></th>
        <th>Total Outstanding <?php echo $tran_currency; ?></th>
        <th>Remarks</th>
    </tr>
    </thead>
    <tbody>
    <?php
        if(isset($return_arr)){
            $data = $return_arr;
            foreach($data as $row){
            ?>
                <tr>
                    <td><?php echo ucwords(strtolower($row['cell'][1]))?></td>
                    <td><?php echo $row['cell'][2]?></td>
                    <td><?php echo $row['cell'][3]?></td>
                    <td><?php echo $row['cell'][4]?></td>
                    <td><?php echo $row['cell'][5]?></td>
                    <td><?php echo $row['cell'][6]?></td>
                    <td><?php echo $row['cell'][7]?></td>
                    <td><?php echo $row['cell'][8]?></td>
                    <td><?php echo $row['cell'][9]?></td>
                    <td><?php echo $row['cell'][10]?></td>
                    <td><?php echo $row['cell'][11]?></td>
                    <td><?php echo $row['cell'][12]?></td>
                    <td><?php echo $row['cell'][13]?></td>
                </tr>
            <?php
            }
        }
    ?>
    </tbody>
</table>